package com.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper{
    @Select("select * from user where id=#{id}")
    User selectByPrimaryKey(int id);
    @Delete("delete from user where id=#{id}")
    int deleteByPrimaryKey(int id);
    @Select("select * from user")
    List<User> selectAll();
}